<?php
/**
 * manage the form
 */
class stockGoodsInquiryComponent extends sfComponent
{
    public function execute($request)
    {
        $this->getResponse()->addJavaScript('backend/'.$this->getModuleName().'/'.__CLASS__.'.js', 'last');

        $params = array("blankOption"=>true, "format"=> "SF_SELECT_OPTIONS");
        $factorysHashItems = Doctrine::getTable(WacTable::$factory)->getIdNameHashListGroupByTypes("all", $params);
        $this->factorySelectList = new sfWidgetFormSelect(
                array(
                        "choices"=>array('0' => '请选择...') + $factorysHashItems
                ),
                array(
                        'tabindex' => '1',
        ));
    }

}